package IoC;

public class Car {
    private Framework framework;
    public Car(int size,String color){
         framework = new Framework(size,color);
    }
    public void init(){
        System.out.println("构造汽车");
        //依赖车身
        framework.init();
    }
}
